]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Fix style
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 17 Jul 2014 22:59:06 +0000 (00:59 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Aug 2014 13:23:21 +0000 (15:23 +0200)
js/ui/workspace.js

index 1303babb06fbf97b7e757275aeebb781ce10d3df..5fd055b0175c5d4d4f3732045428978ba5177e59 100644 (file)
@@ -87,7 +87,7 @@ const WindowCloneLayout = new Lang.Class({
     },
 
     vfunc_allocate: function(container, box, flags) {
-        let clone = container.get_children().forEach(function (child) {
+        container.get_children().forEach(Lang.bind(this, function (child) {
             let realWindow;
             if (child == container._delegate._windowClone)
                 realWindow = container._delegate.realWindow;
@@ -96,8 +96,8 @@ const WindowCloneLayout = new Lang.Class({
 
             child.allocate(this._makeBoxForWindow(realWindow.meta_window),
                            flags);
-        }, this);
-    },
+        }));
+    }
 });
 
 const WindowClone = new Lang.Class({